Syntax

dir_x#=DC GET LIGHT DIRECTION X()
dir_y#=DC GET LIGHT DIRECTION Y()
dir_z#=DC GET LIGHT DIRECTION Z()

Parameters

This command takes no parameters.

Returns

The x, y or z component of the sunlight direction.

Example Code

rem Main loop
do
	 ...
    set directional light 0,dc get light direction x(),dc get light direction y(),dc get light direction z()
    ...
loop

See also

DarkCLOUDS Commands Menu
Index